package org.hxyjs.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author 
 */
public class Bookskind implements Serializable {
    private String bkno;

    private String ano;

    private String bkname;

    private String bkdescribe;

    private Integer bkstate;

    private List<Books> books;

    private static final long serialVersionUID = 1L;

    public String getBkno() {
        return bkno;
    }

    public void setBkno(String bkno) {
        this.bkno = bkno;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getBkname() {
        return bkname;
    }

    public void setBkname(String bkname) {
        this.bkname = bkname;
    }

    public String getBkdescribe() {
        return bkdescribe;
    }

    public void setBkdescribe(String bkdescribe) {
        this.bkdescribe = bkdescribe;
    }

    public Integer getBkstate() {
        return bkstate;
    }

    public void setBkstate(Integer bkstate) {
        this.bkstate = bkstate;
    }

    public List<Books> getBooks() {
        return books;
    }

    public void setBooks(List<Books> books) {
        this.books = books;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Bookskind other = (Bookskind) that;
        return (this.getBkno() == null ? other.getBkno() == null : this.getBkno().equals(other.getBkno()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getBkname() == null ? other.getBkname() == null : this.getBkname().equals(other.getBkname()))
            && (this.getBkdescribe() == null ? other.getBkdescribe() == null : this.getBkdescribe().equals(other.getBkdescribe()))
            && (this.getBkstate() == null ? other.getBkstate() == null : this.getBkstate().equals(other.getBkstate()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBkno() == null) ? 0 : getBkno().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getBkname() == null) ? 0 : getBkname().hashCode());
        result = prime * result + ((getBkdescribe() == null) ? 0 : getBkdescribe().hashCode());
        result = prime * result + ((getBkstate() == null) ? 0 : getBkstate().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", bkno=").append(bkno);
        sb.append(", ano=").append(ano);
        sb.append(", bkname=").append(bkname);
        sb.append(", bkdescribe=").append(bkdescribe);
        sb.append(", bkstate=").append(bkstate);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}